package com.longxi.tianjintianbao.ui.presenter.rectification;

import android.support.v7.widget.GridLayoutManager;

import com.longxi.tianjintianbao.listener.SelectDeletePersonnelListener;
import com.longxi.tianjintianbao.model.Personnel;
import com.longxi.tianjintianbao.ui.activity.rectification.RectificationDetailActivity;
import com.longxi.tianjintianbao.ui.adapter.multitype.AddPersonnelListViewBinder;
import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.base.BaseDialogFragment;
import com.longxi.tianjintianbao.ui.base.BasePresenter;
import com.longxi.tianjintianbao.ui.view.rectification.IRectificationStateDfgView;
import com.longxi.tianjintianbao.utils.MyUtils;

import java.util.List;

import me.drakeet.multitype.Items;
import me.drakeet.multitype.MultiTypeAdapter;

public class RectificationStateDfgPresenter extends BasePresenter<IRectificationStateDfgView> {

    private MultiTypeAdapter adapter;
    private Items items;

    public RectificationStateDfgPresenter(BaseActivity context, BaseDialogFragment dialogFragment) {
        super(context, dialogFragment);
    }

    public void setBar() {
        mDialogFragment.setTitle("整改指派");
        mDialogFragment.setTvLeft("返回");
    }

    RectificationDetailActivity rectificationDetailActivity;
    /**
     * 获取父类
     * @return
     */
    public RectificationDetailActivity getRectificationDetailActivity(){
        if(rectificationDetailActivity == null){
            return (RectificationDetailActivity) mContext;
        }else{
            return rectificationDetailActivity;
        }
    }

}
